package tableGeorg;

public class Divide extends Value {

	double first = 0, second = 0, result = 0;

	public Divide(Value a, Value b) {
		if (a == null) {
			a = new NullValue();
		}
		if(b == null) {
			b = new NullValue();
			
		} 
			first = a.evaluate();
			second = b.evaluate();
		if (second==0.0) result=0.0;
		else
			result = first / second;
		}
	

	public double evaluate() {
		return result;
	}
}
